package net.bluesword.practice001;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FileController {
    @RequestMapping("/detail/{type}/{path}")
    public String toDetails(@PathVariable("type") String type,
                            @PathVariable("path") String path)
    {
        return String.format("/%s/%s",type,path);
    }
}
